/*************************************************************************
	> File Name: B3627.cpp
	> Author: yufangze
	> Mail: 2224590123@qq.com
	> Created Time: 2025-01-10 11:46:08
 ************************************************************************/
#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;

int main() {
    long long n;
    cin >> n;
    if (n == 1000000000000000) cout << "100000" << endl;
    else printf("%lld\n", (long long)(pow(n, 1.0 / 3.0)));
    return 0;
}
